package com.yimi.policyservice.dto.client;

import java.util.Comparator;

public class SignRule implements Comparable< SignRule > {
    private String fieldName;
    private int isSign;

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public int getIsSign() {
        return isSign;
    }

    public void setIsSign(int isSign) {
        this.isSign = isSign;
    }


    @Override
    public int compareTo(SignRule o) {
        if(this.getFieldName().compareTo(o.getFieldName())<0){
            return -1;
        }else{
            return 1;
        }
    }
}
